<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("baseinfo:lhpcamera:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("baseinfo:lhpcamera:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("baseinfo:lhpcamera:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">摄像机名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.cameraName" placeholder="摄像机名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">摄像头编码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.cameraCode" placeholder="摄像头编码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">摄像机类型 01海康 02 大华</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.cameraType" placeholder="摄像机类型 01海康 02 大华"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">摄像机ip地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.cameraIp" placeholder="摄像机ip地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">摄像机端口号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.cameraPort" placeholder="摄像机端口号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">摄像机用户名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.cameraUserName" placeholder="摄像机用户名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">摄像机密码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.cameraPassword" placeholder="摄像机密码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">摄像机通道号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.cameraChannel" placeholder="摄像机通道号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">内网 0 是 1否</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.isInternal" placeholder="内网 0 是 1否"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">外网地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.extranetUrl" placeholder="外网地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">外网key</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.extranetKey" placeholder="外网key"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">外网秘钥</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.extranetSecret" placeholder="外网秘钥"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">外网用户uuid</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.extranetUserUuid" placeholder="外网用户uuid"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">外网摄像头uuid</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.extranetCameraUuid" placeholder="外网摄像头uuid"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.isActice" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">安装点编号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.pointId" placeholder="安装点编号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">网络uuid</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpCamera.extranetNetzoneUuid" placeholder="网络uuid"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/baseinfo/lhpcamera.js?_${.now?long}"></script>
</body>
</html>